package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan({"com.example.demo.mapper", "com.example.demo.config.myannotation.mapper"})
@EnableScheduling
@SpringBootApplication(scanBasePackages = {
        "com.example.demo.config.swagger",
        "com.example.demo.config.websocket.config",
        "com.example.demo.entity",
        "com.example.demo.mapper",
        "com.example.demo.service",
        "com.example.demo.common",
        "com.example.demo.controller",
        "com.example.demo.outstyle",
        "com.example.demo.util",
        "com.example.demo.config.websocket.util",
        "com.example.demo.config.websocket.controller",
        "com.example.demo.config.myannotation",
        "com.example.demo.config.token"
})
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
